package com.xiangge.crawler.inter;

import com.xiangge.db.pojo.SynthesizeCategory;
import com.xiangge.db.pojo.SynthesizeGoods;
import org.jsoup.nodes.Document;

import java.io.IOException;
import java.util.List;

/**
 * @author lsy_server
 */
public interface CrawlerBaseService {
    void crawler();

    String crawlerUrl(String url, Object... param);

    List<SynthesizeGoods> crawlerGoods(String crawlerUrl, Integer page, SynthesizeCategory id) throws IOException;

    List<SynthesizeGoods> analyze(Document document, Integer categoryId);

    Integer PAGE_LIMIT = 1000;
}
